import java.util.HashMap;
import java.util.Scanner;

public class ScoreQuery {

    public static void main(String[] args) {
        // 假设这是从数据库或者其他地方获得的学生分数信息
        HashMap<String, Integer> scores = new HashMap<>();
        scores.put("001", 95);
        scores.put("002", 87);
        scores.put("003", 92);

        System.out.println("请输入要查询学生的ID:");
        Scanner scanner = new Scanner(System.in);
        String studentId = scanner.nextLine();

        if (scores.containsKey(studentId)){
            System.out.println("学号为" + studentId +"的学生得分是：" + scores.get(studentId));
        } else{
            System.out.println("未找到该学号");
        }
        
        scanner.close();
    }
}